	var oSpan = document.querySelector("span");
	var oDiv = document.querySelector("#bottom");
	var aLi = document.querySelectorAll("li");

	oSpan.onclick = function () {
	  if (oDiv.style.display == "none") {
	    oDiv.style.display = "block";
	  } else {
	    oDiv.style.display = "none";
	  }
	}

	for (var i = 0; i < aLi.length; i++) {
	  aLi[i].onclick = function () {
	    oDiv.style.display = "none";
	  }
	}